package com.socool.sinofaith.model;

import com.google.gson.Gson;

import android.text.TextUtils;

/**
 * 答题结果
 */
public class QuestionAnswerBean implements java.io.Serializable {

	private static final long serialVersionUID = -648025656932870913L;
	public static final String TABLENAME = "QuestionAnswer";
	private int ID;
	private String Task_ID; // 任务编号
	private String SubTask_ID; // 二级任务编号
	private String Stemp_ID; // 三级编号（车架号），没有为空
	private String Submiter; // 提交人手机
	private String TaskQuestion_ID; // 问题编号
	private String Answer; // 答案
	private String FileCount; // 音视频，图片文件数
	private String OtherAnswer; // 单选其他时自定义答案
	private String AnswerType; // 答题类型 1自动答题 0手动答题
	private String IsFinish; // 是否已完成 1已完成 0未完成 2已提交

	private String Formto; // 上一级
	private String GPS;
	private String GPSTime;
	private String RemindFlag; // 标注标记 当1的时候要选中情况要标记
	private String CreateTime;
	private String ModifyTime;
	
	private boolean isSelect;
	
	
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return new Gson().toJson(this);
	}
	
	
	public boolean isSelect() {
		return isSelect;
	}

	public void setSelect(boolean isSelect) {
		this.isSelect = isSelect;
	}

	/**
	 * 为了做一键提交
	 */
	private String Template;

	public String getTemplate() {
		return Template;
	}

	public void setTemplate(String template) {
		Template = template;
	}

	public int getID() {
		return ID;
	}

	public void setID(int iD) {
		ID = iD;
	}

	public String getTask_ID() {
		return Task_ID;
	}

	public void setTask_ID(String task_ID) {
		Task_ID = task_ID;
	}

	public String getSubTask_ID() {
		return SubTask_ID;
	}

	public void setSubTask_ID(String subTask_ID) {
		SubTask_ID = subTask_ID;
	}

	public String getStemp_ID() {
		return Stemp_ID;
	}

	public void setStemp_ID(String stemp_ID) {
		Stemp_ID = stemp_ID;
	}

	public String getSubmiter() {
		return Submiter;
	}

	public void setSubmiter(String submiter) {
		Submiter = submiter;
	}

	public String getTaskQuestion_ID() {
		return TaskQuestion_ID;
	}

	public void setTaskQuestion_ID(String taskQuestion_ID) {
		TaskQuestion_ID = taskQuestion_ID;
	}

	public String getAnswer() {
//		if(TextUtils.isEmpty(Answer)){
//			Answer="";
//		}
		return Answer;
	}

	public void setAnswer(String answer) {
		Answer = answer;
	}

	public String getFileCount() {
		return FileCount;
	}

	public void setFileCount(String fileCount) {
		FileCount = fileCount;
	}

	public String getOtherAnswer() {
		return OtherAnswer;
	}

	public void setOtherAnswer(String otherAnswer) {
		OtherAnswer = otherAnswer;
	}

	public String getAnswerType() {
		return AnswerType;
	}

	public void setAnswerType(String answerType) {
		AnswerType = answerType;
	}

	public String getIsFinish() {
		return IsFinish;
	}

	public void setIsFinish(String isFinish) {
		IsFinish = isFinish;
	}

	public String getFormto() {
		return Formto;
	}

	public void setFormto(String formto) {
		Formto = formto;
	}

	public String getGPS() {
		return GPS;
	}

	public void setGPS(String gPS) {
		GPS = gPS;
	}
	
	

	public String getGPSTime() {
		return GPSTime;
	}


	public void setGPSTime(String gPSTime) {
		GPSTime = gPSTime;
	}


	public String getRemindFlag() {
		return RemindFlag;
	}

	public void setRemindFlag(String remindFlag) {
		RemindFlag = remindFlag;
	}

	public String getCreateTime() {
		return CreateTime;
	}

	public void setCreateTime(String createTime) {
		CreateTime = createTime;
	}

	public String getModifyTime() {
		return ModifyTime;
	}

	public void setModifyTime(String modifyTime) {
		ModifyTime = modifyTime;
	}
}
